
function showErrorMessage(errMessage,div)
{   
    
    $(div).html('');
    var element = '<div class="erralert text-center large-12 column">';
        element +='<a>' + '<strong>' + 'Oops!&nbsp;' + '</strong>' +  errMessage + '</a>';
        element += '</div>';
    /*$(div).append('<div data-alert class="alert-box alert radius">'+'<h6>'+ 'Sorry The Following Errors Has Encountered' + '</h6>'+'<a href="#" class="close">&times;</a>'+'</div>');*/
    $(div).append(element);

}



function hideErrorMessage(div)
{   
    $(div).hide().fadeOut(4000);
}

function showSuccesfulMessage(title,message,div)
{
    $(div).html('');
    $(div).append('<h5>'+ title + '</h5>' + '<br>');
    $(div).append('<h6>'+ message + '</h6>');
    $(div).foundation('reveal','open');

}

function showLoading(div)
{
   var LOADING = '<center><img src="'+ URL + 'img/loading.gif"></center>';
   $(div).html('');
   $(div).append(LOADING); 

}

function hideLoading(div)
{
    $(div).html('Register');
}

function hideLoading2(div)
{
    $(div).html('Get Started');
}